﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.Practices.Unity;

namespace Happy.Bootstrap.Unity
{
    /// <summary>
    /// 约定注册者。
    /// </summary>
    public interface IConventionRegister
    {
        /// <summary>
        /// 如果满足约定就执行注册，如果不满足约定就不要注册。
        /// </summary>
        bool Register(IUnityContainer container, Type serviceType);
    }
}
